|
Genshi is a template engine for XML-based vocabularies written in Python. Genshi is used to easily insert generated output into XML-based languages, usually HTML, and reuse elements between documents. Genshi is based on Kid and aims to implement some of its functionality while processing templates faster.〔(【引用サイトリンク】title=What is Genshi? )〕 Genshi can be used with several Python web frameworks, such as CherryPy,〔(【引用サイトリンク】title=CherryPy – Genshi )〕〔(【引用サイトリンク】title=Genshi - CherryPy Tools - Trac )〕 TurboGears,〔(【引用サイトリンク】title=Genshi Templating )〕 Pylons〔(【引用サイトリンク】title=Genshi Templates - Pylons Cookbook )〕 and web2py.〔(【引用サイトリンク】title=web2py: Enterprise Web Framework )〕 Genshi has replaced Kid in the TurboGears 2.x web framework. == Genshi markup == Genshi makes use of namespaces to embed instructions into HTML. A typical instruction is given as an attribute, with a Python expression inside the quotes. For example, the following will render a paragraph that shows 4: Because of the use of namespaces, Genshi can be used in WYSIWYG HTML editors.〔(【引用サイトリンク】title=Choosing a templating language )〕〔(【引用サイトリンク】title=Choosing a templating language )〕 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Genshi (templating language)」の詳細全文を読む スポンサード リンク
|